<template>
  <CloudButton @click="success">
    Display a loading indicator
  </CloudButton>
</template>
<script>
export default {
  title: '2.加载中',
  methods: {
    success() {
      const hide = this.$cloudMessage.loading({
        content: 'Action in progress..',
        top: '100px',
        duration: 2
      });
      setTimeout(hide, 2500);
    },
  },
};
</script>